package cloudoer.blog.dao;

import cloudoer.blog.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int deleteByEmail(@Param("email") String email);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    List<User> selectAll();

    List<User> selectCondition(@Param("map") Map map);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}